import BScroll from 'better-scroll'
export default {
    data() {
        return {
            isRuler: false
        }
    },
    methods: {
        showRuler() {
            this.isRuler = true;
            console.log('1');
            setTimeout(() => {
                new BScroll('.wrapper', {
                    scrollY: true,
                    click: true
                })
            }, 300)
        },
        chosePanel(e) {
            console.log('2');
            this.isRuler = e;
        }
    },
}